package com.hava.contentsale.meta;

import com.hava.contentsale.utils.OutputObject;

import java.math.BigDecimal;
import java.math.BigInteger;
import java.sql.Blob;

/**
 * Created by yanfa on 2016/11/9.
 * 内容的默认持久化对象
 */
public class ContentPO extends OutputObject {

    long id;

    BigDecimal price;

    String title;

    // Blob 最大 65K，按照需求，只能够存储图片地址，不能够存储图片对象
    byte[] icon;

    String _abstract;

    byte[] text;

    // Getter and Setter

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

//    public long getPrice() {
//        return price;
//    }
//
//    public void setPrice(long price) {
//        this.price = price;
//    }


    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String get_abstract() {
        return _abstract;
    }

    public void set_abstract(String _abstract) {
        this._abstract = _abstract;
    }

    public byte[] getIcon() {
        return icon;
    }

    public void setIcon(byte[] icon) {
        this.icon = icon;
    }

    public byte[] getText() {
        return text;
    }

    public void setText(byte[] text) {
        this.text = text;
    }
}
